package cn.luowb.checkchat.dao.mapper;

import cn.luowb.checkchat.dao.entity.MediaResourceDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

/**
 * @author heimenkyou
 * @description 针对表【media_resource(媒体资源)】的数据库操作Mapper
 * @createDate 2025-09-01 19:07:09
 * @Entity cn.luowb.checkchat.dao.entity.MediaResourceDO
 */
public interface MediaResourceMapper extends BaseMapper<MediaResourceDO> {

    @Select("select url from media_resource where ref_id = #{postId} and ref_type = 'post'")
    ArrayList<String> getMediaUrlListByPostId(Integer postId);
}




